import request from '@/utils/request'

const api_name = 'admin/hosp/hospitalSet'

export default {
  postPageList(page, limit, hospitalSetQueryVo) {
    return request({
      url: `${api_name}/findPageHospSet/${page}/${limit}`,
      method: 'post',
      data: hospitalSetQueryVo
    })
  },

  removeById(id) {
    return request({
      url: `${api_name}/${id}`,
      method: 'delete',
    })
  },

  batchRemove(idList) {
    return request({
      url: `${api_name}/batchRemove`,
      method: 'delete',
      data: idList
    })
  },

  lockHospitalSet(id, status) {
    return request({
      url: `${api_name}/lockHospitalSet/${id}/${status}`,
      method: 'put',
    })
  },

  //添加医院设置
  saveHospSet(hospitalSet) {
    return request({
      url: `${api_name}/saveHospitalSet`,
      method: 'post',
      data: hospitalSet
    })
  },

  //编辑医院设置
  updateHospitalSet(hospitalSet) {
    return request({
      url: `${api_name}/updateHospitalSet`,
      method: 'post',
      data: hospitalSet
    })
  },

  //详情
  getHospSet(id) {
    return request({
      url: `${api_name}/getHospSet/${id}`,
      method: 'get'
    })
  }


}
